#include "SelectController.h"
#include "TaskPackNodeItem.h"
#include <QApplication>
#include <QGraphicsScene>
#include <QGraphicsView>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    SelectController controller;
    TaskPackNodeItem node1;
    controller.competitorRegister(node1.selectAdapter());
    node1.setPos(100, 100);
    node1.setRect(0, 0, 100, 100);

    TaskPackNodeItem node2;
    controller.competitorRegister(node2.selectAdapter());
    node2.setPos(300, 300);
    node2.setRect(0, 0, 50, 50);

    AppendChildNodeSatelliteItem satellite_right;
    controller.setSatellite(satellite_right.satelliteAdapter());

    QGraphicsScene scene;
    scene.setSceneRect(0, 0, 1000, 500);
    controller.setScene(&scene);
    scene.addItem(&node1);
    scene.addItem(&node2);
    scene.addItem(&satellite_right);

    QGraphicsView view(&scene);
    view.setSceneRect(scene.sceneRect());
    view.show();

    return a.exec();
}
